package com.cn.vo;

/**
 * Created by chenyuncong on 2018/9/3.
 */
public class ReJson {
    private Integer code;
    private Integer count;
    private Object data;
    private String msg;

    public ReJson() {
    }

    public ReJson(Integer count, Object data) {
        this.code = 0;
        this.count = count;
        this.data = data;
        this.msg = "成功";
    }

    public ReJson(Integer code, Integer count, Object data, String msg) {
        this.code = code;
        this.count = count;
        this.data = data;
        this.msg = msg;
    }

    public ReJson set(Integer count, Object data){
        this.count = count;
        this.data = data;
        return this;
    }

    public ReJson set(Integer code, Integer count, Object data){
        this.code = code;
        this.count = count;
        this.data = data;
        return this;
    }

    public ReJson set(Integer code, Integer count, Object data, String msg){
        this.code = code;
        this.count = count;
        this.data = data;
        this.msg = msg;
        return this;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
